function validation(){
	//gets userName and password from the form
	var userName = document.getElementById("userName").value;
	var password = document.getElementById("password").value;
	
	if (userName ==""){
		alert("please enter your user name.");
		return false;
  }else if (userName.length < 6){
  	alert("Username must be at least 6 characters");
  	return false;
   }else if (password ==""){
		alert("please enter your password.");
		return false;
  }else if (password.length < 6){
  	alert("Password must be at least 6 characters");
  	return false;
   }
  else{
  	return true;
  }
}